/* 
  1，导入react和react-dom
  2.通过react的api创建react元素,虚拟dom
  3.把react元素渲染到页面中
*/
import React from 'react'
import ReactDOM from 'react-dom'

const element = React.createElement(
  'div',
  { id: 'box', title: '哈哈' },
   '我是内容'
)
// console.log(element);
ReactDOM.render(element, document.getElementById('root'))